package com.hongxun.design.ui.myslider;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;

import com.hongxun.design.R;
import com.hongxun.design.ui.statisticsmap.pieview.MPieChartView;

/**
 * Created by zerdoor_pc on 2016/6/29.
 */
public class MyTextSliderView_Pie extends MyBaseSliderView {
    public MyTextSliderView_Pie(Context context) {
        super(context);
    }
    MPieChartView piegraphView;
    @Override
    public View getView() {
        View v = LayoutInflater.from(this.getActivity()).inflate(R.layout.slider_style_item2, null);
        LinearLayout relativeLayout= (LinearLayout) v.findViewById(R.id.daimajia_slider_item);
        relativeLayout.setVisibility(View.VISIBLE);
        piegraphView = (MPieChartView) relativeLayout.findViewById(R.id.piegraphview_rl);
        piegraphView.setStart(this.getPieData());
        return v;
    }
    public void setPiegraphView(){
        piegraphView.update();
    }

}
